package com.dlc.shop.systemtest.api.amount;

import com.dlc.shop.bean.model.ShopDetail;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

/**
 * @author lanhai
 */
public class ShopDetailApi {
    public static  String sendLoginCode(){
        String url = Constant.SHOP_URL +"/shop/shopDetail/sendCode";
        return HttpUtil.post(url,null,String.class,true);
    }

    /**
     * 获取验证码
     * @return
     */
    public static String getCode(Integer type){
        String url = Constant.SHOP_URL +"/shop/shopDetail/getCode?type=" + type;
        return HttpUtil.get(url,String.class,true );
    }

    /**
     * 商家获取店铺信息
     */
    public static ShopDetail shopInfo(){
        String url = Constant.SHOP_URL +"/shop/shopDetail/info";
        return HttpUtil.get(url,ShopDetail.class);
    }
}
